package com.kehutong.basic.annex.entity;

import com.kehutong.basic.annex.enums.BusinessType;
import com.kehutong.basic.annex.enums.OperateType;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

@Table(value="t_operate_record", comment="操作记录", multi=true, idType = IDType.TIMESTAMP)
public class OperateRecord extends Entity {

    private static final long serialVersionUID = -8594151322302778063L;

    protected OperateRecord(String id) {
        super(id);
    }

    @Column(comment = "业务类型")
    private BusinessType businessType;

    /**
     * 房子ID、小区ID、车位ID。。。
     */
    @Column(comment="业务ID")
    private String businessId;

    @Column(comment = "操作类型")
    private OperateType operateType;

    @Column(comment = "处理人ID")
    private String operateNo;

    @Column(comment = "处理人名称")
    private String operateName;

    @Column(dbType = "TEXT" ,comment = "操作详情")
    private String operateDesc;

    public BusinessType getBusinessType() {
        return businessType;
    }

    public void setBusinessType(BusinessType businessType) {
        this.businessType = businessType;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public OperateType getOperateType() {
        return operateType;
    }

    public void setOperateType(OperateType operateType) {
        this.operateType = operateType;
    }

    public String getOperateNo() {
        return operateNo;
    }

    public void setOperateNo(String operateNo) {
        this.operateNo = operateNo;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    public String getOperateDesc() {
        return operateDesc;
    }

    public void setOperateDesc(String operateDesc) {
        this.operateDesc = operateDesc;
    }
}
